Generate random float numbers in a specific numerical rangeΒΆ

Generate random float numbers in a specific numerical range.
Expected output:
2.036
36.572
36.557
98.051
37.290
77.583
import random

for x in range(6):
    print('{:04.3f}'.format(random.uniform(x, 100)), end=' ')

Output:

54.737  19.032  9.527  19.097  17.633  41.780